#include <iostream>
template <clas>
struct HFNode{
    int value;
    int lchild;
    int rchild;
    int parent;
    int depth;
}HFNode;

struct HFTree{
    HFNode<int> elem[2000];
    int num;
    int root;
}HFNode;
int main(){




    return 0;
}